﻿@{
    ViewBag.Title = "Register";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model P2PWeb.Models.Account

<link href="@Url.Content("~/Content/Register_Style.css")" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="@Url.Content("~/Scripts/app/Register.js")"></script>

<script type="text/javascript">
    $(function () {
        $('a.askIcon').each(function () {
            $(this).mouseover(function () {
                $(this).prev().css('display', 'block');
            });

            $(this).mouseleave(function () {
                $(this).prev().css('display', 'none');
            });
        });

        //tab页切换
        var s = ["Lender", "lend"];
        var tab = getQueryString("tab");
        if (tab == null)
            tab = "Lender";
        if (tab == "Lender") {
            $("form").removeClass("register_lender_form png");
            $("form").addClass("register_borrow_form png png");
            $("#tabImg").addClass("fl ml48 mt110");
            $("#tabImg").attr("src", "/Images/register_bg2.jpg");
        }
        else {
            $("form").removeClass("register_borrow_form png");
            $("form").addClass("register_lender_form png png");
            $("#tabImg").addClass("fl imgPosition");
            $("#tabImg").attr("src", "/Images/register_bg1.jpg");
        }

    });

    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null)
            return unescape(r[2]);
        return null;
    }

    function change_rand() {
        $(".validate2").attr('src', '/Login/ValidateCode?d=' + new Date().getTime());
    }
</script>

<div class="main">
    <div class="main_top"><span class="main_top_right"></span></div>
    <div class="main_box pt0 pb0 pr30 pl30">
        <h3 class="register_lender_tit">注册升付金融通信证</h3>
        <div class="col666 pl20 mt30 ml20 aI clearfix">
        </div>
         @using (Html.BeginForm("GetRegisterInfo", "Login"))
        {
        <div class="register_box w800 mt20 bc pt20 pl30 br5 clearfix">
            <div class="fl">
                    <p>
                        <a title="注册成会员" class="registerBorrow_btn ml20 mt15 png" href="/Login/Register?tab=Lender"></a>
                    </p>
                    <div class="counterBox_row clearfix pt30">
                        <div class="w70 fl tr">
                            <label class=" label_text2 colblack2" for="s_email_mobile">账&nbsp;&nbsp;户</label></div>
                        <div class=" tl pl80">
                            @Html.TextBoxFor(m => m.Mobile, new { id="s_email_mobile", name="s_email_mobile", @class = "input_text2 w258",placeholder ="请输入邮箱/手机号",@maxlength="50",@value="",title ="请输入邮箱/手机号",onfocus="on_focus('s_email_mobile')",onblur="check_email_mobile();"})
                        </div>
                    </div>
                    <div class="counterBox_row clearfix pt5 warn_text">
                        <div class="w70 fl tr">
                            <label class="">&nbsp;</label></div>
                        <div class=" tl pl80 pl100_ie6 colred4" id="s_email_mobile_message"></div>
                    </div>
                    <div class="counterBox_row clearfix pt5">
                        <div class="w70 fl tr">
                            <label class=" label_text2 colblack2" for="s_cnname">昵&nbsp;&nbsp;称</label></div>
                        <div class=" tl pl80">
                            @Html.TextBoxFor(m => m.Name, new { id="s_cnname",name="s_cnname",@class = "input_text2 w258",placeholder ="请输入昵称",@maxlength="20",@value="",title ="请输入昵称",onfocus="on_focus('s_cnname')",onblur="check_validata(this.value,'s_cnname');on_check(this.value,'s_cnname');"})
                        </div>
                    </div>
                    <div class="counterBox_row clearfix pt5 warn_text">
                        <div class="w70 fl tr">
                            <label class="">&nbsp;</label></div>
                        <div class=" tl pl80 pl100_ie6 colred4" id="s_cnname_user"></div>
                    </div>
                    <div class="counterBox_row clearfix pt5">
                        <div class="w70 fl tr">
                            <label class=" label_text2 colblack2" for="s_user_pwd">密&nbsp;&nbsp;码</label></div>
                        <div class=" tl pl80">
                            @Html.TextBoxFor(m => m.PassWord, new { id="s_user_pwd",name="s_user_pwd",@class = "input_text2 w258",type="password",placeholder ="请输入密码",@maxlength="16",@value="",title ="请输入密码",onfocus="on_focus('s_user_pwd')",onblur="check_password('1')"})
                        </div>
                    </div>
                    <div class="counterBox_row clearfix pt5 warn_text  ">
                        <div class="w70 fl tr">
                            <label class="">&nbsp;</label></div>
                        <div class=" tl pl80 pl100_ie6 colred4" id="s_user_pwd1"></div>
                    </div>
                    <div class="counterBox_row clearfix pt5">
                        <div class="w70 fl tr">
                            <label class=" label_text2 colblack2" for="s_user_pwd2">确认密码</label></div>
                        <div class=" tl pl80">
                            <input type="password" class="input_text2 w258" maxlength="16" placeholder="请再次输入密码" title="请再次输入密码"
                                name="s_user_pwd2" id="s_user_pwd2" onfocus="on_focus('s_user_pwd2')"
                                onblur="check_password('2')">
                        </div>
                    </div>
                    <div class="counterBox_row clearfix pt5 warn_text  ">
                        <div class="w70 fl tr">
                            <label class="">&nbsp;</label></div>
                        <div class=" tl pl80 pl100_ie6 colred4" id="s_use2"></div>
                    </div>
                    <div class="counterBox_row clearfix pt5">
                        <div class="w70 fl tr">
                            <label class=" label_text2 colblack2" for="srand">验证码</label>
                        </div>
                        <div class=" tl pl80 pr" id="security_code_div">
                            <input type="text" class="input_text2 w100" maxlength="6" id="srand"
                                name="srand" title="请输入验证码" placeholder="请输入验证码" />
                            <img class="validate2 ml10 vt dib vm_ie7 hand"
                                src="/Login/ValidateCode" onclick="change_rand()" />
                            <a class="col666 ml10 vt_ie7 dib" href="javascript:void(0);" onclick="change_rand()">换一张</a>
                        </div>
                    </div>
                    <div class="counterBox_row clearfix pt5 warn_text">
                        <div class="w70 fl tr">
                            <label class="">&nbsp;</label></div>
                        <div class=" tl pl80 pl100_ie6 colred4" id="s_nick_srand"></div>
                    </div>
                    <div class="counterBox_row clearfix pt10">
                        <div class="w70 fl tr">
                            <label class=" label_text2 colblack2">&nbsp;</label></div>
                        <div class=" tl pl80">
                            <label class="col666">
                                <input type="checkbox" class="vv" id="checkflag" name="checkflag">同意</label>
                            <a class="colblue1"  target="_blank" href="/Login/Argument">晶享金融注册协议</a>
                        </div>
                    </div>
                    <div class="counterBox_row clearfix pt5">
                        <div class="w70 fl tr">
                            <label class="">&nbsp;</label></div>
                        <div class=" tl pl80">
                            <a class="register_btn fl" href="javascript:on_submitCheck();">注册</a>
                        </div>
                    </div>
                    <input type="hidden" name="page_type" value="1" />
                    <input type="hidden" name="C_TYPE_SOURCE" value="" />
                    <div class="form_bottom png"></div>
            </div>
            <img id="tabImg" class="fl ml48 mt110" title="" alt=""
                src="/Images/register_bg2.jpg">
        </div>
        }
    </div>
    <div class="main_bottom"><span class="main_bottom_right"></span></div>
</div>
